{
GtkAccelLabel *accel_label = GTK_ACCEL_LABEL (widget);
guint ac_width;
- GtkAllocation allocation, clip;
+ GtkAllocation allocation;
GtkRequisition requisition;
- graphene_rect_t bounds;
-
- gtk_widget_get_clip (widget, &clip);
- gtk_widget_get_allocation (widget, &allocation);
- graphene_rect_init (&bounds,
- clip.x - allocation.x, clip.y - allocation.y,
- clip.width, clip.height);
- gtk_snapshot_push (snapshot, &bounds, "AccelLabel");
GTK_WIDGET_CLASS (gtk_accel_label_parent_class)->snapshot (widget, snapshot);
g_object_unref (accel_layout);
}
-
- gtk_snapshot_pop (snapshot);
}
static void
GtkSnapshot *snapshot)
{
GtkContainer *container = GTK_CONTAINER (widget);
- GtkAllocation allocation, clip;
- graphene_rect_t bounds;
-
- gtk_widget_get_clip (widget, &clip);
- gtk_widget_get_allocation (widget, &allocation);
- graphene_rect_init (&bounds,
- clip.x - allocation.x, clip.y - allocation.y,
- clip.width, clip.height);
- gtk_snapshot_push (snapshot, &bounds, "Children<%s>", G_OBJECT_TYPE_NAME (container));
gtk_container_forall (container,
gtk_container_snapshot_forall,
snapshot);
-
- gtk_snapshot_pop (snapshot);
}
static void
get_box_border (style, &border);
get_box_padding (style, &padding);
- gtk_snapshot_push (snapshot, &bounds, "%s<%s>", gtk_css_node_get_name (priv->node), G_OBJECT_TYPE_NAME (priv->owner));
-
gtk_snapshot_translate_2d (snapshot, x + margin.left, y + margin.top);
gtk_css_style_snapshot_background (style,
snapshot,
height - margin.top - margin.bottom);
gtk_snapshot_translate_2d (snapshot, - x - margin.left, - y - margin.top);
}
-
- gtk_snapshot_pop (snapshot);
}
void
gboolean result;
cairo_t *cr;
- gtk_snapshot_push (snapshot, &bounds, "DrawSignal<%s>", G_OBJECT_TYPE_NAME (widget));
-
klass->snapshot (widget, snapshot);
cr = gtk_snapshot_append_cairo_node (snapshot,
"DrawSignalContents<%s>", G_OBJECT_TYPE_NAME (widget));
g_signal_emit (widget, widget_signals[DRAW], 0, cr, &result);
cairo_destroy (cr);
-
- gtk_snapshot_pop (snapshot);
}
else
{
GtkAllocation allocation;
GtkBorder window_border;
gint title_height;
- graphene_rect_t bounds;
GList *l;
context = gtk_widget_get_style_context (widget);
get_shadow_width (GTK_WINDOW (widget), &window_border);
_gtk_widget_get_allocation (widget, &allocation);
- graphene_rect_init (&bounds, allocation.x, allocation.y, allocation.width, allocation.height);
-
- gtk_snapshot_push (snapshot, &bounds, "Window Decoration");
-
if (priv->client_decorated &&
priv->decorated &&
!priv->fullscreen &&
}
gtk_debug_updates_snapshot (widget, snapshot);
-
- gtk_snapshot_pop (snapshot);
}
/**